/**
 * Copyright (C), 2015-2020, XXX有限公司
 * FileName: PersonController
 * Author:   ZX
 * Date:     2020/7/30 23:32
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package org.example.controller;

import org.example.entity.Person;
import org.example.service.IndexService;
import org.example.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author ZX
 * @create 2020/7/30
 * @since 1.0.0
 */
@RestController
public class PersonController {

    @Autowired
    private PersonService personService;



    @RequestMapping("queryAll")
    public List<Person> queryAll() throws InterruptedException {
        return personService.queryAll();
    }

}